<!--
 * @Author: jackning 270580156@qq.com
 * @Date: 2024-06-18 17:56:09
 * @LastEditors: jackning 270580156@qq.com
 * @LastEditTime: 2024-08-09 00:30:30
 * @Description: bytedesk.com https://github.com/Bytedesk/bytedesk
 *   Please be aware of the BSL license restrictions before installing Bytedesk IM – 
 *  selling, reselling, or hosting Bytedesk IM as a service is a breach of the terms and automatically terminates your rights under the license. 
 *  仅支持企业内部员工自用，严禁私自用于销售、二次销售或者部署SaaS方式销售 
 *  Business Source License 1.1: https://github.com/Bytedesk/bytedesk/blob/main/LICENSE 
 *  contact: 270580156@qq.com 
 * 联系：270580156@qq.com
 * Copyright (c) 2024 by bytedesk.com, All Rights Reserved. 
-->
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>微语-智能客服</title>
</head>

<body>
    <!--  -->
    <script src="/chat/assets/js/float/index.js"></script>
    <!-- <script src="./assets/js/float/index.min.js"></script> -->
    <script>
        //
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg); //匹配目标参数
            if (r != null) return decodeURIComponent(r[2]);
            return null; //返回参数值
        }
        //
        var org = getUrlParam('org')
        var t = getUrlParam('t')
        var sid = getUrlParam('sid')
        var src = '/chat/?org=' + org + '&t=' + t + '&sid=' + sid + '&'
        // init chatfloat, and init params
        window.ChatFloat({
            chatUrl: src, // custom chat url
            //buttonPosition: 'left', // botton position：left or right
            //buttonBackgroundColor: 'red', // button background color
            //iframeWidth: 400,
            //iframeHeight: 600,
            //iframeMargins: { right: 20, bottom: 20, left: 20 }, // iframe margins
            //buttonMargins: { right: 20, bottom: 20, left: 20 }, // button margins
            //showButton: true, // show button or not
            //showIframe: true // show iframe or not
        });
    </script>
</body>

</html>